
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

 
<%@ include file="/templates/menu.jsp" %>
<%@page import="com.training.dto.Employee"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
	function validate()

	{
		alert('Stop here ');
		return false;

	}
</script>

</head>
<body>
	<%!String errorMessage;%>

	<%!String anotherString = "Example String";
	String oneMOre = "New String";%>

	<%!Employee employee = null;%>
	<h1>Login Page</h1>


	<p>
		This is Paragraph
		<%
		System.out.print("Dynamic--" + oneMOre);
	%>
	
		In between we have Dynamic
	</p>

	<%
		String myString = "Hello String";

		myString = "New Value";

		if (1 == 1) {
	%>
<h1>
This is HTML but only execute if it is True
</h1>	<%
		} else {
	%>
<h3>
This is also HTML
</h3>	<%
		}
	%>


	<%
		//This is Java Comments
		/**
		 *This is multiline commennts
		 */
		employee = new Employee();
		employee.getEmpId();
	%>

	<%
		errorMessage = null;
		errorMessage = (String) request.getAttribute("errorMessage");

		if (errorMessage != null) {
	%>
	<div style="background-color: red">
		<%=errorMessage%>
	</div>
	<%
		}
	%>

	<form action="LoginServlet" method="post">

		User Name : <input type="text" name="name"> <br>
		Password: <input type="password" name="password"> <br>

		New User ? Please <a href="registration.jsp"> Click here</a> to
		Register <br> <input type="submit"> <input type="reset">

	</form>

	<img alt="" src="images/india-flag.gif">


	<form action="registration.jsp" method="get">

		<input type="submit">

	</form>

<%@ include file="/templates/footer.jsp" %>
</body>
</html>